#include <stdio.h>

#define MAXSIZE 10

struct LinearList
{
  int data[MAXSIZE];
  int length;
};

void InitList(struct LinearList *ll);

int main()
{
  struct LinearList ll;
  InitList(&ll);

  for (int i = 0; i < MAXSIZE; i++)
  {
    printf("data[%d] = %d\n", i, ll.data[i]);
  }

  printf("length = %d\n", ll.length);
  return 0;
}

void InitList(struct LinearList *ll)
{
  for (int i = 0; i < MAXSIZE; i++)
  {
    // init data
    ll->data[i] = 0;
  }

  ll->length = 0;
}
